svg background

45

/* You can use CSS masks, With the 'mask' property, you create a mask that is applied to an element. */
background-color: red;
-webkit-mask-image: url(icon.svg);
mask-image: url(icon.svg);
.element {
  background-image: url(/images/image.svg);
}
background: url(100px-wide-no-height-or-ratio.svg);
background-size: contain;

Comments

Submit
0 Comments